package mobidever.godutch.database.base;

import java.util.ArrayList;

import mobidever.godutch.activity.R;

import android.content.Context;

public class SQLiteDateBaseConfig {
	private static final String DATABASE_NAME = "GoDutchDataBase";
	private static final int VERSION = 1;
	private static SQLiteDateBaseConfig INSTANCE;
	private static Context mContext;
	
	private SQLiteDateBaseConfig(){
		
	}
	
	public static SQLiteDateBaseConfig getInstance(Context pContext){
		if(INSTANCE == null){
			INSTANCE = new SQLiteDateBaseConfig();
			mContext = pContext;
		}
		return INSTANCE;
	}
	public String getDataBaseName(){
		return DATABASE_NAME;
	}
	public int getVersion(){
		return VERSION;
	}
	public ArrayList<String> getTables(){
		ArrayList<String> _ArrayList = new ArrayList<String>();
		String[] _SQLiteDALClassName = mContext.getResources().getStringArray(R.array.SQLiteDALClassName);
		String _PackagePath = "mobidever.godutch.database.sqlitedal.";
		for(int i=0;i<_SQLiteDALClassName.length;i++){
			_ArrayList.add(_PackagePath+_SQLiteDALClassName[i]);
		}
		return _ArrayList;
	}
}
